package com.ltu.service.impl.customize;

import com.ltu.domain.mp_entity.customize.CompanyEntity;
import com.ltu.mapper.customize.CompanyMapper;
import com.ltu.myannotation.MyReidsCache;
import com.ltu.service.customize.CompanyService;
import org.springframework.stereotype.Service;
import com.ltu.service.impl.BaseServiceImpl;
import com.ltu.util.redis.RedisKeyManager;

/**
 * <p>
 * 公司 服务实现类
 * </p>
 *
 * @author 若尘
 * @since 2023-04-14
 */
@Service
public class CompanyServiceImpl extends BaseServiceImpl<CompanyMapper, CompanyEntity> implements CompanyService {

	@Override
	@MyReidsCache(enable = true,key = RedisKeyManager.RootKey+RedisKeyManager.Splitter+"Company"+RedisKeyManager.Splitter,fieldKey = "#id")
	public CompanyEntity getMeById(Integer id) {
		return this.getById(id);
	}

   
}
